package com.yupi.springbootinit.annotation;

import com.baomidou.mybatisplus.annotation.TableLogic;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Retryer {

    //指定时间间隔
    long waitMsec() default 0;

    //重试的异常
    Class[] retryThrowable() default {};

    //在一定超时后停止
    long maxDelayMsec() default 0;

    //最大重试次数
    int maxAttempt() default 0;
}
